<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title> <?= $title_for_layout ?> </title>
    <?php $this->load->view('meta'); ?>
</head>
<body>
    <!-- begin header -->
    <div class="Header">
        <div class="logo" style="height: 53px; font-size: 24px; padding: 0px 0px 15px 0px; color: #333;">
            <img src="<?= base_url(); ?>images/mapps.vn.png.back" alt="Logo" /> 
        </div> 
        <div class="LoggedInAs">
            <?php 
            /*if(isset($_SESSION['username'])) {
            ?>
                <strong>Logged in as:</strong> <?php echo $_SESSION['username']; ?>,
                <a class="Logout" href="<?php echo $document_root; ?>logout">Logout</a>
            <?php 
            }*/
            ?>
        </div>
    </div> 
    <!-- end header --> 
    <!-- begin navigation -->
    <div class="menuBar"> 
        <div id="Menu">
            <ul>                           
                <li<?=($this->uri->segments[2] == 'home') ? ' class="Active"' : ''?> id="mnuControl">
                    <a href="<?= base_url() .'admin/home'; ?>" class="TopMenuItem">
                        <span class="CornerLeft"></span> <span class="MenuImage mnuContent"></span>
                        <span class="MenuText" style="margin-right: 0;">Dashboard</span>
                        <span class="CornerRight"></span>
                    </a> 
                </li>
                <li<?=($this->uri->segments[2] == 'category') ? ' class="Active"' : ''?> id="mnuControl">
                    <a href="<?= base_url() .'admin/category'; ?>" class="TopMenuItem">
                        <span class="CornerLeft"></span> <span class="MenuImage mnuContent"></span>
                        <span class="MenuText">Category</span>
                        <span class="Arrow"></span> <span class="CornerRight"></span>
                    </a> 
                </li> 
                <li id="mnuUsers"<?=($this->uri->segments[2] == 'user') ? ' class="Active"' : ''?>>
                    <a href="<?= base_url() .'admin/user'; ?>" class="TopMenuItem">
                        <span class="CornerLeft"></span> <span class="MenuImage mnuContent"></span>
                        <span class="MenuText">User</span>
                        <span class="Arrow"></span> <span class="CornerRight"></span>
                    </a> 
                </li>
            </ul>
        </div>
    </div>
    <!-- end navigation -->